﻿using System;
using System.Windows;

namespace ISMv1.Controls
{
    /// <summary>
    /// Interaction logic for GetSessionNameDialog.xaml
    /// </summary>
    public partial class GetSessionNameDialog : Window
    {
        public String SessionName { get; set; }

        public GetSessionNameDialog()
        {
            InitializeComponent();
            txt_SessionName.DataContext = this;
        }

        public void ShowWarning()
        {
            lbl_Warning.Visibility = Visibility.Visible;
        }
        public void HideWarning()
        {
            lbl_Warning.Visibility = Visibility.Collapsed;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.Hide();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

    }
}
